

PictureManagAir.thumbView = Ext.extend(Ext.grid.GridPanel, {
    border: false,
    initComponent: function(){
        Ext.apply(this, {
            store: new Ext.data.Store({
                reader: new Ext.data.JsonReader({
                    idProperty: 'id'
                }, PictureManagAir.model.Picture ),
                data: []
            }),
            columns: [
                {id:'id', header: 'Id', width: 200, sortable: true, dataIndex: 'id'}
                ,{header: 'Name', width: 120, sortable: true, renderer: Ext.util.Format.usMoney, dataIndex: 'name'}
                ,{header: 'Size', width: 120, sortable: true, dataIndex: 'size'}
            ],
            sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
            width:600,
            height:300,
            iconCls:'icon-grid'
        });
        PictureManagAir.thumbView.superclass.initComponent.apply(this, arguments);
    } // eo function initComponent
});

Ext.reg('thumbview', PictureManagAir.thumbView);

